import Vue from "vue";
import Vuex from "vuex";
import createLogger from "vuex/dist/logger";
import screen from './modules/screen'
import area from './modules/service_area'
import sewage from './modules/sewage'

Vue.use(Vuex);

const debug = process.env.NODE_ENV !== "production";

export default new Vuex.Store({
  modules: {
    screen,
    area,
    sewage
  },
  // 不使用严格模式，vuex绑定checkbox中的坑
  // strict: debug,
  strict: false,
  plugins: debug ? [createLogger()] : []
});
